package com.my.study.hutool.aop.spring;

import cn.hutool.aop.aspects.SimpleAspect;

import java.lang.reflect.Method;

/**
 * @author: yidujun
 * @create: 2021/06/28 13:53
 */
public class UserAspect extends SimpleAspect {
    private static final long serialVersionUID = 3255784864035378242L;

    @Override
    public boolean before(Object target, Method method, Object[] args) {
        System.out.println("Aspect...before....");
        return true;
    }

    @Override
    public boolean after(Object target, Method method, Object[] args, Object returnVal) {
        System.out.println("Aspect...after....");
        return true;
    }
}
